using Making.Avalonia.WebView.Core.Services;
using Microsoft.Extensions.DependencyInjection;

namespace Making.Avalonia.WebView.MacOS;

public static class MacOSWebViewExtensions
{
    public static void RegisterMacOSWebView(this IServiceCollection services)
    {
        services.AddSingleton<MacOSWebViewProvider>();
        WebViewProviderFactory.RegisterProvider<MacOSWebViewProvider>(SupportedPlatform.MacOS);
    }
}